package com.bole.feign.reception;


import com.bole.dto.car.BrowsingHistoryDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "BOLECAR-RECEPTION-SERVICE")
public interface BroHistoryFeign {
    @PostMapping("/broHis/selectByUserId")
    List<BrowsingHistoryDto> selectByUserId(@RequestParam("userId") Long userId);

    @PostMapping("/broHis/saveHistory")
    void saveHistory(@RequestParam("userId") Long userId,@RequestParam("carId") Long carId);
}
